# -*- coding: utf-8 -*-
# @Time    : 2022/1/11 11:30
# @Author  : mzp
# @Email   : 2609404548@qq.com
# @File    : scrz_page.py
# @Software: PyCharm

"""删除日志"""
from pages.base_page import BasePage
from pages.zbjrrz_page import BgrzXg
from selenium.webdriver.common.by import By
class ScRz(BasePage):

    scrz1_locator = (By.XPATH, '//*[@id="form1"]/table/tbody/tr[1]/td[1]/input')
    scrz2_locator = (By.XPATH, '//*[@id="form1"]/table/tbody/tr[2]/td[1]/input')
    scrzal_locator = (By.XPATH, '//*[@id="delete"]')
    def xzrz(self):  #选择多个日志
        self.driver.find_element(*self.scrz1_locator).click()
        self.driver.find_element(*self.scrz2_locator).click()

    def  djscal(self):  #点击删除按钮
        self.driver.find_element(*self.scrzal_locator).click()
    def qdscrz(self):   #确认删除
        self.driver.switch_to.alert.accept()

    dy_locator = (By.XPATH, '/html/body/div[5]/div[2]')

    def dy_text(self):
        return self.driver.find_element(*self.dy_locator).text




